home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-03-19 | 2.4 KB | 73 lines | [TEXT/MPS ] |
- #
- # ****************************************************************************
- #
- # File Name: WordProcessor.Lib
- #
- # Contains: xxx put contents here xxx
- #
- # Written by: KTA, KL, ML, GS et al
- #
- # Copyright: © 1993-1994 by Apple Computer, Inc., all rights reserved.
- #
- # ****************************************************************************
- # C h a n g e H i s t o r y (most recent first):
- # ****************************************************************************
- #
- # Vers Date Author Description
- # ---- -------- ------ ---------------------------------------------
- # <1.0.4> 12/7/94 ML Added Exception Handling support
- # <1.0.3> 4/14/94 ML Define gWindowInset
- # <1+> 5/21/93 NAGA Adding header and porting old files to follow new standards
- #
- # ****************************************************************************
- #
-
- ########################################################################
- # External libraries
- #=======================================================================
- Libraries "DoTasks.Lib","UserInterface.Lib", "ExceptionHandling.Lib";
-
- #########################################################################
- # DoWPTools()
- #========================================================================
- # Author: ML
- # Description: Test Word Processor Tools.
- # Parameters: RulerRect,TabToolList,OtherToolList,SelectAllFlag
- # Returns: Nada
- # Examples: DoWPTools();
- # Assumptions: Word
- #========================================================================
- # History:
- # ML 11/29/94 Added Exception Handling support
- ########################################################################
- TASK DoWPTools()#(RulerRect,TabToolList,OtherToolList,SelectAllFlag:=0)
- begin
- global RulerMenuPath,RulerRect,TabToolList,OtherToolList,SelectAllFlag;
-
- if (RulerMenuPath)
- begin
- myMenuItem := RulerMenuPath[1];
- myMenu := RulerMenuPath[2];
- end;
-
- if (_matchBoolean ([menu t:myMenu e:true i:{ [menuitem t:myMenuItem e:true]}]!))
- selectmenuitem(RulerMenuPath[1],RulerMenuPath[2]);
-
- if SelectAllFlag
- SelectMenuItem ("Select All", "Edit");
-
- # do the following in the script
-
- theDesc := FindWindow(0);
- rect := theDesc.r;
- bottomInset := rect[4]-rect[2]-RulerRect[4];
- rightInset := rect[3]-rect[1]-RulerRect[3];
- global gWindowInset := {RulerRect[1],RulerRect[2],rightInset,bottomInset};
-
- global gToolList:= TabToolList;
- DoDraw(2);
-
- global gToolList:= OtherToolList;
- DoDraw(2);
-
- end;